﻿
using System.Collections.Generic;

namespace Spotted.Data.Entities
{
    public class Place
    {
        public string ID { get; set; }
        public string Name { get; set; }
        public double Rating { get; set; }
        public IList<string> Types { get; set; }

        public double Latitude { get; set; }
        public double Longitude { get; set; }

        // readonly properties
        public string RatingText
        {
            get
            {
                if (double.IsNaN(Rating))
                    return "No Rating";

                return string.Format("{0:0.00} out of 5.00", Rating);
            }
        }
    }
}
